﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Linq;

namespace GNSWebSite.Settings
{
    public class LocaleSettings
    {
        public static XDocument _doc = XDocument.Load(HttpContext.Current.Server.MapPath("~/Settings/GnsSettings.xml"));
        /// <summary>
        /// password max length return
        /// </summary>
        public static string DefaultLocale
        {
            get
            {
                return
                    Convert.ToString(
                    _doc.Descendants("gnssettings").Elements("locale").FirstOrDefault().Element("defaultlocale").Attribute("value")
                            .Value);
            }
        }
    }
}
